function y = vec(x)
% VEC(X)
%	vectorizes a matrix

% June 9, 2004
% Sungbae An

y = x(:);
